package com.dome.gateway.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.util.HashMap;
import java.util.Map;

/**
 * @description:
 * @author: hz
 * @time: 2021/5/3 15:31
 */
@Configuration
@PropertySource(value = "classpath:rule.properties")
@ConfigurationProperties(prefix = "cloud")
public class RulePropertiesConfig {

    private Map<String, String> ribbon = new HashMap<>();

    public Map<String, String> getRibbon() {
        return ribbon;
    }

    public void setRibbon(Map<String, String> ribbon) {
        this.ribbon = ribbon;
    }
}
